[id].vue 89 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277
  1. <template>
  2. <!-- 页面头部 -->
  3. <HomePageHead></HomePageHead>
  4. <!-- 导航栏 -->
  5. <HomePageNavigation></HomePageNavigation>
  6. <!-- 面包屑导航 -->
  7. <!-- <div class="breadcrumb-box">
  8. <div class="inner">
  9. <span class="location">当前位置:</span>
  10. <el-breadcrumb :separator-icon="ArrowRight">
  11. <el-breadcrumb-item>
  12. <NuxtLink to="/">首页</NuxtLink>
  13. </el-breadcrumb-item>
  14. <el-breadcrumb-item>
  15. <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
  16. </el-breadcrumb-item>
  17. <el-breadcrumb-item>
  18. <NuxtLink :to="`list-1.html`"> {{ routLevelTitle }}</NuxtLink>
  19. </el-breadcrumb-item>
  20. <el-breadcrumb-item class="phone_breadcrumb_text">
  21. {{ routeNewsTtitle }}
  22. </el-breadcrumb-item>
  23. </el-breadcrumb>
  24. </div>
  25. </div> -->
  26. <!-- 面包屑导航 -->
  27. <div class="breadcrumb-box">
  28. <div class="inner">
  29. <span class="location">当前位置:</span>
  30. <el-breadcrumb :separator-icon="ArrowRight">
  31. <el-breadcrumb-item>
  32. <NuxtLink to="/">首页</NuxtLink>
  33. </el-breadcrumb-item>
  34. <el-breadcrumb-item>
  35. <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
  36. </el-breadcrumb-item>
  37. <el-breadcrumb-item>
  38. <NuxtLink :to="`list-1.html`"> {{ routLevelTitle }}</NuxtLink>
  39. </el-breadcrumb-item>
  40. <el-breadcrumb-item class="phone_breadcrumb_text">
  41. {{ routeNewsTtitle }}
  42. </el-breadcrumb-item>
  43. </el-breadcrumb>
  44. </div>
  45. </div>
  46. <!-- 资讯列表 -->
  47. <div class="newsDetail">
  48. <!-- <div class="inner"> -->
  49. <div class="innerLeft">
  50. <div class="LeftTop">
  51. <h1>{{ newsDetail.title }}</h1>
  52. <p>
  53. <span>时间:{{ time }}</span>
  54. <span>来源:{{ newsDetail.copyfrom }}</span>
  55. <span>作者:{{ newsDetail.author }}</span>
  56. </p>
  57. </div>
  58. <div
  59. class="leftBottom"
  60. v-html="newsDetail.content"
  61. v-if="newsDetail.content"
  62. @click="openPreview">
  63. </div>
  64. <div v-if="previewVisible" class="preview-modal" @click="closePreview">
  65. <img :src="selectedImage" alt="Preview">
  66. </div>
  67. <!-- 免责声明: -->
  68. <div class="disclaimer" v-if="newsDetail.copyfrom!='本网'">
  69. <p>原文链接:{{ newsDetail.fromurl }}</p>
  70. <p>[免责声明]本文来源于网络转载,仅供学习交流使用,不构成商业目的。 版权归原作者所有,如涉及作品内容,版权和其他问题,请在30日与本网联系,我们将第一时间处理。</p>
  71. </div>
  72. <div v-if="articleChoice">
  73. <!--投票-->
  74. <div class="index_3_box_vote" v-if="articleChoice">
  75. <div class="voteTitle">投票区</div>
  76. <div class="inquire">
  77. <p v-if="voteList.length>0">{{voteList[0].survey_name}}</p>
  78. <div class="radioBox">
  79. <!--投票选项-->
  80. <div v-if="!isDisabled">
  81. <div class="radio" v-if="isRadio">
  82. <el-radio-group v-model="radio1" @change="handleRadioChange">
  83. <el-radio v-for="item in voteList" :key="item.id" :value="item.id" size="large">
  84. <span v-if="item.is_other == 0">{{item.choice_name}}</span>
  85. <span v-else>其他</span>
  86. </el-radio>
  87. </el-radio-group>
  88. <el-input
  89. v-if="showUserChoice"
  90. v-model="userChoice"
  91. :rows="2"
  92. type="textarea"
  93. resize="none"
  94. placeholder="请输入.."
  95. />
  96. </div>
  97. <div class="checkInputBox" v-else>
  98. <el-checkbox-group v-model="check1" @change="handleCheckboxChange">
  99. <span v-for="item in voteList" :key="item.id">
  100. <span v-if="item.is_other == 0">
  101. <el-checkbox size="large" :label="item.choice_name" :value="item.id"/>
  102. </span>
  103. <span v-else>
  104. <el-checkbox size="large" label="其他" :value="item.id"/>
  105. </span>
  106. </span>
  107. </el-checkbox-group>
  108. <el-input
  109. v-if="showUserChoice"
  110. v-model="userChoice"
  111. :rows="2"
  112. type="textarea"
  113. resize="none"
  114. placeholder="请输入.."
  115. />
  116. </div>
  117. </div>
  118. <!--投票结果-->
  119. <div class="inquireData" v-else>
  120. <div v-for="item in websiteSurveyData.data" :key="item.id">
  121. <div class="inquireDataItem active" v-if="item.status == 1">
  122. <div class="inquireDataItemTitle">
  123. <span v-if="item.choice_name == ''">其他</span>
  124. <span v-else>{{item.choice_name}}</span>
  125. </div>
  126. <div class="inquireDataItemNum">{{item.results}}票</div>
  127. </div>
  128. <div class="inquireDataItem" v-else>
  129. <div class="inquireDataItemTitle">
  130. <span v-if="item.choice_name == ''">其他</span>
  131. <span v-else>{{item.choice_name}}</span>
  132. </div>
  133. <div class="inquireDataItemNum">{{item.results}}票</div>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. <div class="btn">
  139. <button class="voting" @click="addWebsiteSurvey" :disabled="isDisabled" v-if="!isDisabled">投票</button>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. <!--推荐阅读-->
  145. <!-- <div class="recommendRead" v-if="newsDetail.commendArticle != false">
  146. <div class="recommendReadTitle">
  147. <span class="read_title">
  148. 推荐阅读
  149. </span>
  150. </div>
  151. <div class="recommendReadList">
  152. <div class="recommendReadListTitle" v-for="(item, index) in newsDetail.commendArticle"
  153. :key="item.id">
  154. <a :href="`/${item.alias_pinyin}/${item.id}.html`" v-if="index < 3">
  155. {{ item.title }}
  156. </a>
  157. </div>
  158. </div>
  159. </div> -->
  160. <!--上一篇 下一篇-->
  161. <div class="prevNext">
  162. <NuxtLink to="/">上一篇:李强签署国务院令 公布《行政执法监督条例》</NuxtLink>
  163. <NuxtLink to="/">下一篇:没有了</NuxtLink>
  164. </div>
  165. </div>
  166. <div class="innerRight">
  167. <div class="newsItemsBox">
  168. <div class="new-items-box-title">
  169. <span></span>
  170. <NuxtLink to="/" title="最新资讯"> 最新动态 </NuxtLink>
  171. </div>
  172. <div class="new-items-box-body">
  173. <div class="coniteml zzjj">
  174. <div class="l_img maskLayer">
  175. <NuxtLink class="imgA" to="http://hbfzdy.org.cn/show-139825.html" title="全国统战部长会议在京召开 王沪宁出席并讲话">
  176. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  177. </NuxtLink>
  178. <NuxtLink class="maskLayer_text" to="http://hbfzdy.org.cn/show-139825.html" title="全国统战部长会议在京召开 王沪宁出席并讲话">
  179. <span class="zzc">全国统战部长会议在京召开 王沪宁出席并讲话</span>
  180. </NuxtLink>
  181. </div>
  182. <div class="l_img maskLayer">
  183. <NuxtLink class="imgA" to="http://hbfzdy.org.cn/show-139806.html" title="监测数据造假不可为 企业个人的环保法律责任清单">
  184. <img src="http://img.hbfzdy.org.cn/202601/940d7fb8dff31.png" data-src="http://img.hbfzdy.org.cn/202601/940d7fb8dff31.png" data-isloaded="1">
  185. </NuxtLink>
  186. <NuxtLink class="maskLayer_text" to="http://hbfzdy.org.cn/show-139806.html" title="监测数据造假不可为 企业个人的环保法律责任清单">
  187. <span class="zzc">监测数据造假不可为 企业个人的环保法律责任清单</span>
  188. </NuxtLink>
  189. </div>
  190. </div>
  191. <ul class="conitemlList">
  192. <li>
  193. <span>1</span>
  194. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  195. </li>
  196. <li>
  197. <span>2</span>
  198. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  199. </li>
  200. <li>
  201. <span>3</span>
  202. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  203. </li>
  204. <li>
  205. <span>4</span>
  206. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  207. </li>
  208. <li>
  209. <span>5</span>
  210. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  211. </li>
  212. <li>
  213. <span>6</span>
  214. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  215. </li>
  216. <li>
  217. <span>7</span>
  218. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  219. </li>
  220. <li>
  221. <span>8</span>
  222. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  223. </li>
  224. <li>
  225. <span>9</span>
  226. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  227. </li>
  228. <li>
  229. <span>10</span>
  230. <NuxtLink to="http://hbfzdy.org.cn/show-139815.html">深耕海域政务法制 赋能生态治理提质——政务法制网深耕海域生态安全</NuxtLink>
  231. </li>
  232. </ul>
  233. </div>
  234. </div>
  235. <div class="newsItemsBox">
  236. <div class="new-items-box-title">
  237. <span></span>
  238. <NuxtLink to="/" title="最新资讯"> 热点新闻 </NuxtLink>
  239. </div>
  240. <div class="new-items-box-body">
  241. <div class="coniteml2">
  242. <div class="rdxwImg">
  243. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  244. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  245. </NuxtLink>
  246. </div>
  247. <div class="rdxwText">
  248. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  249. <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
  250. <p>  1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
  251. </NuxtLink>
  252. </div>
  253. </div>
  254. <div class="coniteml2">
  255. <div class="rdxwImg">
  256. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  257. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  258. </NuxtLink>
  259. </div>
  260. <div class="rdxwText">
  261. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  262. <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
  263. <p>  1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
  264. </NuxtLink>
  265. </div>
  266. </div>
  267. <div class="coniteml2">
  268. <div class="rdxwImg">
  269. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  270. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  271. </NuxtLink>
  272. </div>
  273. <div class="rdxwText">
  274. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  275. <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
  276. <p>  1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
  277. </NuxtLink>
  278. </div>
  279. </div>
  280. <div class="coniteml2">
  281. <div class="rdxwImg">
  282. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  283. <img src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-src="http://img.hbfzdy.org.cn/202601/0757be3d59a9f05.jpg" data-isloaded="1">
  284. </NuxtLink>
  285. </div>
  286. <div class="rdxwText">
  287. <NuxtLink to="http://hbfzdy.org.cn/show-139825.html" title="">
  288. <h4>全国统战部长会议在京召开 王沪宁出席并讲话</h4>
  289. <p>  1月28日,全国统战部长会议在北京召全国统战部长会议在京召开 王沪宁出席并讲话</p>
  290. </NuxtLink>
  291. </div>
  292. </div>
  293. </div>
  294. </div>
  295. <!-- <DetailHotNews2></DetailHotNews2> -->
  296. </div>
  297. </div>
  298. <!-- 页面底部 -->
  299. <HomeFoot></HomeFoot>
  300. </template>
  301. <script setup>
  302. //1.页面依赖 start ---------------------------------------->
  303. import { onMounted } from 'vue'
  304. import { ElBreadcrumb, ElBreadcrumbItem, ElRadio, ElRadioGroup, ElCheckbox, ElCheckboxGroup, ElMessage, ElInput } from 'element-plus'
  305. import { ArrowRight } from '@element-plus/icons-vue'
  306. const nuxtApp = useNuxtApp();
  307. const axios = nuxtApp.$axios;
  308. //1.1 获得跳转过来的id
  309. const route = useRoute();
  310. //获得详情id
  311. const articleId = parseInt(route.params.id); //获得该页面的id
  312. //获得当前的完整路径
  313. const fullPath = route.path;
  314. //拆分,取出来中间这一段,然后提取数字部分
  315. const segments = fullPath.split('/');
  316. const targetSegment = segments[1];
  317. // const numberPart = targetSegment.match(/\d+$/)?.[0];
  318. // let routeId = 20 //排除路径错误可以打开这个
  319. // const routeId = numberPart;
  320. let routeId;
  321. //通过导航路径反向查询导航id
  322. const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
  323. method: 'GET',
  324. query: {
  325. 'pinyin': targetSegment,
  326. },
  327. });
  328. if (getRouteId.code == 200) {
  329. routeId = getRouteId.data.category_id
  330. } else {
  331. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  332. console.log("错误位置:通过url路径查询导航池id")
  333. console.log("后端错误反馈:", getRouteId.message)
  334. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  335. }
  336. //1.2 获得父级栏目的名称、id
  337. const parent_name = ref([]);
  338. const parent_id = ref([]);
  339. const parent_pinyin = ref("");
  340. const parent_children_count = ref(0)
  341. let getParentNav = async () => {
  342. const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
  343. method: 'GET',
  344. query: {
  345. 'catid': routeId
  346. },
  347. });
  348. console.log("获取父级栏目数据")
  349. console.log(listData)
  350. if (listData.code == 200) {
  351. console.log(listData.data);
  352. parent_name.value = listData.data.alias;
  353. parent_id.value = listData.data.parent_id;
  354. parent_pinyin.value = listData.data.aLIas_pinyin;
  355. parent_children_count.value = listData.data.children_count;
  356. } else {
  357. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  358. console.log("错误位置:获取面包屑导航")
  359. console.log("后端错误反馈:", listData.message)
  360. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  361. }
  362. }
  363. //获得父级栏目详情
  364. getParentNav();
  365. //1.页面依赖 end ---------------------------------------->
  366. //2.页面数据 start ---------------------------------------->
  367. //2.1 资讯详情
  368. const newsDetail = ref({})
  369. const routeNewsTtitle = ref("");
  370. //2.2 发布日期
  371. const time = ref("");
  372. //2.3 路径
  373. const routLevelTitle = ref("");
  374. const routLevelId = ref("");
  375. //是否展示投票
  376. const articleChoice = ref(false);
  377. //2.4获取详情
  378. async function getPageData() {
  379. const mkdata = await requestDataPromise('/web/selectWebsiteArticleInfo', {
  380. method: 'GET',
  381. query: {
  382. 'articleid': articleId
  383. },
  384. });
  385. if (mkdata.code == 200) {
  386. //判断是否显示投票
  387. if (mkdata.data.is_survey == 1) {
  388. console.log("本篇文章含有投票!")
  389. articleChoice.value = true;
  390. getVoteList();
  391. }
  392. //获取内容
  393. newsDetail.value = mkdata.data;
  394. //获取路径
  395. routLevelTitle.value = newsDetail.value.cat_name;
  396. routLevelId.value = newsDetail.value.category_id;
  397. //获取发布时间
  398. time.value = newsDetail.value.updated_at.split(' ')[0];
  399. //修正标题长度
  400. if (newsDetail.value.title.length >= 30) {
  401. routeNewsTtitle.value = newsDetail.value.title.substr(0, 30) + "...";
  402. } else {
  403. routeNewsTtitle.value = newsDetail.value.title
  404. }
  405. } else {
  406. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  407. console.log("错误位置:获取详情内容")
  408. console.log("后端错误反馈:", mkdata.message)
  409. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  410. }
  411. }
  412. getPageData();
  413. //2.5 获得广告
  414. //广告列表
  415. let adImg1 = ref([]);
  416. // async function getAdData(){
  417. // const adData = await requestDataPromise('/web/getWebsiteAdvertisement',{method:'GET',query:{'ad_tag':'DETAIL'}});
  418. // if(adData.code==200){
  419. // for(let item of adData.data){
  420. // if(item.ad_tag == 'DETAIL_0001'){
  421. // adImg1.value = item;
  422. // }
  423. // }
  424. // }else{
  425. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  426. // console.log("错误位置:获取详情页广告列表")
  427. // console.log("后端错误反馈:",adData.message)
  428. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  429. // }
  430. // }
  431. // getAdData();
  432. onMounted(async () => {
  433. const { $webUrl, $CwebUrl } = useNuxtApp();
  434. //广告1
  435. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_detail_0001`
  436. const responseAd1 = await fetch(url, {
  437. headers: {
  438. 'Content-Type': 'application/json',
  439. 'Userurl': $CwebUrl,
  440. 'Origin': $CwebUrl
  441. }
  442. });
  443. const resultAd1 = await responseAd1.json();
  444. adImg1.value = resultAd1.data[0];
  445. })
  446. //2.页面数据 end ---------------------------------------->
  447. //3.设置seo信息 start---------------------------------------->
  448. //3.1 设置seo信息
  449. const setData = await requestDataPromise('/web/selectWebsiteArticleInfo', {
  450. method: 'GET',
  451. query: {
  452. 'articleid': articleId
  453. },
  454. });
  455. if (setData.code == 200) {
  456. let seoTitle = setData.data.title;
  457. let seoDescription = setData.data.introduce;
  458. let seoKeywords = setData.data.keyword;
  459. let seoSuffix = setData.data.suffix;
  460. let seoName = setData.data.website_name;
  461. useSeoMeta({
  462. title: seoTitle + "_" + seoName + "_" + seoSuffix,
  463. meta: [
  464. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  465. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  466. { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no', tagPriority: 10 }
  467. ]
  468. });
  469. } else {
  470. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  471. console.log("错误位置:设置详情页面SEO数据")
  472. console.log("后端错误反馈:", setData.message)
  473. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  474. }
  475. //3.设置seo信息 end---------------------------------------->
  476. //4.投票 start---------------------------------------->
  477. const radio1 = ref(''); //单选
  478. const check1 = ref([]); //多选
  479. const isDisabled = ref(false);//是否禁用提交按钮
  480. const isRadio = ref(true);//是否渲染单选
  481. const userSurId = ref('');//投票属于哪一篇文章
  482. const userChoice = ref('');//用于判断用户选择了其他选项以后,输入的值
  483. const userIsChoice = ref('');//用于判断其他选项目前是什么值
  484. const showUserChoice = ref(false);//是否显示其他输入框
  485. const websiteSurveyData = ref([]);//投票结果
  486. //3.2获得投票列表
  487. let voteList = ref([]);
  488. async function getVoteList() {
  489. const voteData = await requestHome('/web/getWebsiteSurvey', { method: 'GET', query: { 'art_id': articleId } });
  490. console.log(778899)
  491. console.log(voteData)
  492. if (voteData.code == 200) {
  493. voteList.value = voteData.data;
  494. console.log(voteList.value)
  495. //判断显示单选还是多选
  496. //survey_type 0是单选 1是多选
  497. if (voteData.data[0].survey_type == 0) {
  498. isRadio.value = true;
  499. console.log("1111")
  500. } else {
  501. isRadio.value = false;
  502. }
  503. //把最后一个的值拿出来 用于判断用户是否选择了其他
  504. for (let item of voteData.data) {
  505. //如果含有其他
  506. if (item.is_other == 1) {
  507. userIsChoice.value = item.id;
  508. }
  509. }
  510. //用户投票属于哪一篇文章
  511. userSurId.value = voteData.data[0].sur_id;
  512. } else {
  513. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  514. console.log("错误位置:首页投票")
  515. console.log("后端错误反馈:", voteData.message)
  516. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  517. }
  518. }
  519. //3.2当用户选择了选项,判断是否展示其他输入框
  520. const handleRadioChange = (value) => {
  521. if (value == userIsChoice.value) {
  522. showUserChoice.value = true;
  523. } else {
  524. showUserChoice.value = false;
  525. }
  526. }
  527. const handleCheckboxChange = (value) => {
  528. if (value.includes(userIsChoice.value)) {
  529. showUserChoice.value = true;
  530. } else {
  531. showUserChoice.value = false;
  532. }
  533. }
  534. //3.2发起投票
  535. async function addWebsiteSurvey() {
  536. //判断当前是单选还是多选
  537. console.log(isRadio.value)
  538. if (isRadio.value) {
  539. console.log("用户单选!")
  540. if (radio1.value != '') {
  541. //先判断一下是否使用了其他选项
  542. if (showUserChoice.value) {
  543. if (userChoice.value != '') {
  544. //文章id
  545. // console.log(userSurId.value)
  546. // 用户输入的值
  547. // console.log(userChoice.value)
  548. //如果使用了其他,其他的选项需要增加进去
  549. const ChoiceData = await requestHome('/web/addWebsiteSurveyOption', {
  550. method: 'GET',
  551. query: {
  552. 'sur_id': userSurId.value,//投票的新闻id
  553. 'choice_name': userChoice.value,//投票的选项id
  554. }
  555. });
  556. if (ChoiceData.code == 200) {
  557. //提交完其他选项以后,再正式发起投票
  558. const mkData = await requestHome('/web/addWebsiteSurveyVote', {
  559. method: 'GET',
  560. query: {
  561. 'sur_id': userSurId.value,
  562. 'choice_id': ChoiceData.data
  563. }
  564. });
  565. if (mkData.code == 200) {
  566. ElMessage.success('投票成功!')
  567. //把投票结果显示到页面上 禁用投票按钮
  568. isDisabled.value = true;
  569. websiteSurveyData.value = mkData.data;
  570. //遍历一下,把用户选中的那个设置status为1
  571. let data = mkData.data;
  572. //遍历一下,把用户选中的那个设置status为1
  573. for (let item of data.data) {
  574. for (let i of data.choice) {
  575. if (item.id == i) {
  576. console.log(item.id)
  577. item.status = 1;
  578. }
  579. }
  580. }
  581. websiteSurveyData.value = data;
  582. } else {
  583. ElMessage.error(mkData.message)
  584. }
  585. } else {
  586. ElMessage.error('其他投票失败!')
  587. }
  588. } else {
  589. ElMessage.error('请输入选项内容!')
  590. }
  591. } else {
  592. //如果没选择其他,直接提交选择的内容
  593. const mkData = await requestHome('/web/addWebsiteSurveyVote', {
  594. method: 'GET',
  595. query: {
  596. 'sur_id': userSurId.value,
  597. 'choice_id': radio1.value
  598. }
  599. });
  600. if (mkData.code == 200) {
  601. ElMessage.success('投票成功!')
  602. //把投票结果显示到页面上 禁用投票按钮
  603. isDisabled.value = true;
  604. let data = mkData.data;
  605. //遍历一下,把用户选中的那个设置status为1
  606. for (let item of data.data) {
  607. for (let i of data.choice) {
  608. if (item.id == i) {
  609. item.status = 1;
  610. }
  611. }
  612. }
  613. websiteSurveyData.value = data;
  614. } else {
  615. ElMessage.error('投票失败!')
  616. }
  617. }
  618. } else {
  619. ElMessage.error('请选择一个选项')
  620. }
  621. } else {
  622. console.log("多选!")
  623. //多选
  624. if (check1.value != []) {
  625. //先判断一下是否使用了其他选项
  626. if (showUserChoice.value) {
  627. if (userChoice.value != '') {
  628. //判断用户是否只选择了一个其他
  629. if (check1.value.length == 1) {
  630. const ChoiceData = await requestDataPromise('/web/addWebsiteSurveyOption', {
  631. method: 'GET',
  632. query: {
  633. 'sur_id': userSurId.value,//投票的新闻id
  634. 'choice_name': userChoice.value,//用户输入的其他选项文字
  635. }
  636. });
  637. if (ChoiceData.code == 200) {
  638. //提交完其他选项以后,再正式发起投票
  639. const mkData = await requestDataPromise('/web/addWebsiteSurveyVote', {
  640. method: 'GET',
  641. query: {
  642. 'sur_id': userSurId.value,
  643. 'choice_id': ChoiceData.data
  644. }
  645. });
  646. if (mkData.code == 200) {
  647. ElMessage.success('投票成功!')
  648. //把投票结果显示到页面上 禁用投票按钮
  649. isDisabled.value = true;
  650. websiteSurveyData.value = mkData.data;
  651. //遍历一下,把用户选中的那个设置status为1
  652. let data = mkData.data;
  653. //遍历一下,把用户选中的那个设置status为1
  654. for (let item of data.data) {
  655. for (let i of data.choice) {
  656. if (item.id == i) {
  657. console.log(item.id)
  658. item.status = 1;
  659. }
  660. }
  661. }
  662. websiteSurveyData.value = data;
  663. } else {
  664. ElMessage.error(mkData.message)
  665. }
  666. } else {
  667. ElMessage.error('其他投票失败!')
  668. }
  669. } else {
  670. //用户选择了除了其他以外,还包括别的选项
  671. const ChoiceData = await requestDataPromise('/web/addWebsiteSurveyOption', {
  672. method: 'GET',
  673. query: {
  674. 'sur_id': userSurId.value,//投票的新闻id
  675. 'choice_name': userChoice.value,//用户输入的其他选项文字
  676. }
  677. });
  678. if (ChoiceData.code == 200) {
  679. let data = check1.value;
  680. //找到多选的数组,把其他默认值给替换掉
  681. for (let i = 0; i < data.length; i++) {
  682. if (data[i] == userIsChoice.value) {
  683. data[i] = ChoiceData.data;
  684. }
  685. }
  686. let jsonArray = JSON.stringify(data);
  687. //提交完其他选项以后,再正式发起投票
  688. const mkData = await requestDataPromise('/web/addWebsiteSurveyVote', {
  689. method: 'GET',
  690. query: {
  691. 'sur_id': userSurId.value,
  692. 'choice_id': jsonArray
  693. }
  694. });
  695. if (mkData.code == 200) {
  696. ElMessage.success('投票成功!')
  697. //把投票结果显示到页面上 禁用投票按钮
  698. isDisabled.value = true;
  699. websiteSurveyData.value = mkData.data;
  700. //遍历一下,把用户选中的那个设置status为1
  701. let data = mkData.data;
  702. //遍历一下,把用户选中的那个设置status为1
  703. for (let item of data.data) {
  704. for (let i of data.choice) {
  705. if (item.id == i) {
  706. //console.log(item.id)
  707. item.status = 1;
  708. }
  709. }
  710. }
  711. websiteSurveyData.value = data;
  712. } else {
  713. ElMessage.error(mkData.message)
  714. }
  715. } else {
  716. ElMessage.error('其他投票失败!')
  717. }
  718. }
  719. } else {
  720. ElMessage.error('请输入选项内容!')
  721. }
  722. } else {
  723. let jsonArray = JSON.stringify(check1.value);
  724. //如果没选择其他,直接提交选择的内容
  725. const mkData = await requestDataPromise('/web/addWebsiteSurveyVote', {
  726. method: 'GET',
  727. query: {
  728. 'sur_id': userSurId.value,
  729. 'choice_id': jsonArray
  730. }
  731. });
  732. if (mkData.code == 200) {
  733. ElMessage.success('投票成功!')
  734. //把投票结果显示到页面上 禁用投票按钮
  735. isDisabled.value = true;
  736. websiteSurveyData.value = mkData.data;
  737. //遍历一下,把用户选中的那个设置status为1
  738. let data = mkData.data;
  739. //遍历一下,把用户选中的那个设置status为1
  740. for (let item of data.data) {
  741. for (let i of data.choice) {
  742. if (item.id == i) {
  743. console.log(item.id)
  744. item.status = 1;
  745. }
  746. }
  747. }
  748. websiteSurveyData.value = data;
  749. } else {
  750. ElMessage.error('投票失败!')
  751. }
  752. }
  753. } else {
  754. ElMessage.error('请选择一个选项')
  755. }
  756. }
  757. }
  758. //4.投票 end---------------------------------------->
  759. //5.页面图片放大 start---------------------------------------->
  760. const previewVisible = ref(false)
  761. const selectedImage = ref(' ')
  762. const openPreview = (event) => {
  763. if (event.target.tagName === 'IMG') {
  764. selectedImage.value = event.target.src;
  765. previewVisible.value = true;
  766. }
  767. }
  768. const closePreview = () => {
  769. previewVisible.value = false;
  770. }
  771. //5.页面图片放大 end---------------------------------------->
  772. </script>
  773. <style lang="less" scoped>
  774. //@import url('@/assets/css/article/pc.less');
  775. //@import url('@/assets/css/article/yd.less');
  776. //面包屑
  777. .breadcrumb-box {
  778. width: 1401px;
  779. margin: 0 auto;
  780. background: #fff;
  781. padding: 0 10PX 0;
  782. padding-left: 11PX;
  783. .inner {
  784. width: 100%;
  785. height: 50PX;
  786. margin-top: 14px;
  787. padding-top: 20PX;
  788. // margin-bottom: 20px;
  789. font-family: Microsoft YaHei, Microsoft YaHei;
  790. font-weight: 400;
  791. font-size: 20px;
  792. color: #666666;
  793. text-align: left;
  794. font-style: normal;
  795. text-transform: none;
  796. display: flex;
  797. align-items: center;
  798. border-bottom: 1PX solid #ccc;
  799. // border-bottom: 1px dashed #ccc;
  800. // margin-bottom: 10px;
  801. // padding: 20px 20px 20px 0;
  802. box-sizing: border-box;
  803. a {
  804. font-size: 16px;
  805. color: #000;
  806. line-height: 20px;
  807. }
  808. span {
  809. font-size: 16px;
  810. color: #000;
  811. line-height: 20px;
  812. &.location {
  813. line-height: 20px;
  814. }
  815. }
  816. }
  817. }
  818. .leftBottom::v-deep p img,
  819. .leftBottom::v-deep img,
  820. .leftBottom::v-deep video {
  821. max-width: 700px;
  822. }
  823. .leftBottom::v-deep h1,
  824. .leftBottom::v-deep h2,
  825. .leftBottom::v-deep h3,
  826. .leftBottom::v-deep h4,
  827. .leftBottom::v-deep h5,
  828. .leftBottom::v-deep h6 {
  829. font-size: 20px;
  830. font-weight: 500;
  831. }
  832. //投票
  833. .index_3_box_vote {
  834. .voteTitle {
  835. font-size: 20px;
  836. height: 40px;
  837. line-height: 40px;
  838. color: #333333;
  839. padding-left: 20px;
  840. width: 100%;
  841. border-bottom: 1px solid #E7E7E7;
  842. border-top: 1px solid #139602;
  843. box-sizing: border-box;
  844. }
  845. width:100%;
  846. box-sizing:border-box;
  847. border:solid 1px #FBFBFB;
  848. background: #FBFBFB;
  849. .inquire {
  850. height: 394px;
  851. margin-top: 20px;
  852. border-radius: 6px 6px 6px 6px;
  853. padding: 4px 40px 4px 6px;
  854. box-sizing: border-box;
  855. p {
  856. font-weight: bold;
  857. height: 69px;
  858. font-family: PingFang SC, PingFang SC;
  859. font-size: 20px;
  860. color: #333333;
  861. line-height: 21px;
  862. text-align: left;
  863. font-style: normal;
  864. text-transform: none;
  865. padding: 12px 20px 0 32px;
  866. }
  867. .radioBox {
  868. height: 250px;
  869. padding-left: 30px;
  870. overflow-y: auto;
  871. box-sizing: border-box;
  872. padding-bottom: 20px;
  873. }
  874. .radio {
  875. /deep/.el-radio {
  876. --el-radio-input-border-color-hover: #27881a;
  877. }
  878. /deep/.el-radio-group {
  879. align-items: center;
  880. display: inline-flex;
  881. flex-wrap: wrap;
  882. font-size: 0;
  883. //padding-left: 35px;
  884. }
  885. /deep/.el-radio.el-radio--large {
  886. width: 100%;
  887. height: 29px;
  888. margin-bottom: 15px;
  889. }
  890. /deep/.el-radio.el-radio--large .el-radio__label {
  891. font-family: PingFang SC, PingFang SC;
  892. font-weight: 400;
  893. font-size: 16px;
  894. color: #333333;
  895. white-space: nowrap;
  896. overflow: hidden;
  897. text-overflow: ellipsis;
  898. width: 300px;
  899. }
  900. /deep/.el-radio.el-radio--large .el-radio__inner {
  901. height: 16px;
  902. width: 16px;
  903. }
  904. /deep/.el-radio__input.is-checked+.el-radio__label {
  905. color: #27881a;
  906. }
  907. /deep/.el-radio__input.is-checked .el-radio__inner {
  908. background: #33b023;
  909. border-color: #27881a;
  910. }
  911. }
  912. .checkInputBox {
  913. /deep/.el-checkbox {
  914. --el-radio-input-border-color-hover: #27881a;
  915. }
  916. /deep/.el-checkbox-group {
  917. align-items: center;
  918. display: inline-flex;
  919. flex-wrap: wrap;
  920. font-size: 0;
  921. //padding-left: 35px;
  922. }
  923. /deep/.el-checkbox.el-checkbox--large {
  924. width: 330px;
  925. height: 29px;
  926. margin-bottom: 15px;
  927. }
  928. /deep/.el-checkbox.el-checkbox--large .el-checkbox__label {
  929. font-family: PingFang SC, PingFang SC;
  930. font-weight: 400;
  931. font-size: 16px;
  932. color: #333333;
  933. white-space: nowrap;
  934. overflow: hidden;
  935. text-overflow: ellipsis;
  936. width: 300px;
  937. }
  938. /deep/.el-checkbox.el-checkbox--large .el-checkbox__inner {
  939. height: 16px;
  940. width: 16px;
  941. }
  942. /deep/.el-checkbox__input.is-checked+.el-checkbox__label {
  943. color: #27881a;
  944. }
  945. /deep/.el-checkbox__input.is-checked .el-checkbox__inner {
  946. background: #33b023;
  947. border-color: #27881a;
  948. }
  949. }
  950. .btn {
  951. padding-left: 30px;
  952. button {
  953. width: 78px;
  954. height: 37px;
  955. line-height: 37px;
  956. border-radius: 6px;
  957. border: none;
  958. font-family: PingFang SC, PingFang SC;
  959. font-weight: 400;
  960. font-size: 16px;
  961. color: #999999;
  962. }
  963. .voting {
  964. background-color: #49A769;
  965. color: #fff;
  966. margin-right: 44px;
  967. cursor: pointer;
  968. }
  969. .look {
  970. cursor: pointer;
  971. }
  972. }
  973. }
  974. .inquireData {
  975. .inquireDataItem {
  976. width: 100%;
  977. height: 38px;
  978. display: flex;
  979. align-items: center;
  980. justify-content: space-between;
  981. background: #F3F3F3;
  982. border: 1px solid #D2D2D2;
  983. margin-bottom: 10px;
  984. border-radius: 6px;
  985. padding: 0 15px;
  986. box-sizing: border-box;
  987. color: #999999;
  988. .inquireDataItemTitle {
  989. width: 290px;
  990. height: 38px;
  991. font-size: 16px;
  992. line-height: 38px;
  993. white-space: nowrap;
  994. overflow: hidden;
  995. text-overflow: ellipsis;
  996. }
  997. .inquireDataItemNum {
  998. font-size: 16px;
  999. }
  1000. }
  1001. .active {
  1002. color: #49A769;
  1003. background: #dff7e8;
  1004. border: 1px solid #49A769;
  1005. }
  1006. }
  1007. }
  1008. //放大图片
  1009. .preview-modal {
  1010. position: fixed;
  1011. top: 0;
  1012. left: 0;
  1013. width: 100%;
  1014. height: 100%;
  1015. background: rgba(0, 0, 0, 0.8);
  1016. display: flex;
  1017. justify-content: center;
  1018. align-items: center;
  1019. z-index: 1000;
  1020. }
  1021. .preview-modal img {
  1022. max-width: 100%;
  1023. max-height: 100%;
  1024. cursor: pointer;
  1025. }
  1026. //上一篇 下一篇
  1027. .prevNext {
  1028. // border-bottom: 1px solid #ccc;
  1029. padding-bottom: 10px;
  1030. margin-top: 45PX;
  1031. a {
  1032. display: block;
  1033. color: #333;
  1034. font-size: 15px;
  1035. display: block;
  1036. height: 40px;
  1037. line-height: 40px;
  1038. margin-bottom: 20PX;
  1039. &:hover {
  1040. color: #0071B7;
  1041. }
  1042. }
  1043. }
  1044. .breadcrumb-box{width:1400PX;margin:0px auto 0px; }
  1045. .el-breadcrumb{height:22PX;line-height:22PX;}
  1046. .breadcrumb-box .inner span.location{font-size:16PX;;height:22PX;;line-height:22PX; font-weight:normal;word-break: keep-all; white-space: nowrap;}
  1047. .breadcrumb-box .inner a{font-size:16PX;;height:22PX;line-height:22PX;display:inline-block; font-weight:normal;}
  1048. .breadcrumb-box .phone_breadcrumb_text /deep/.el-breadcrumb__inner{font-size:16PX;;height:22PX;line-height:22PX;
  1049. font-weight:normal;}
  1050. .breadcrumb-box:deep(.el-icon){width:16PX;height:16PX;}
  1051. .breadcrumb-box .inner span{font-size:16PX;height:22PX;line-height:22PX;}
  1052. .prevNext a{height:22PX;line-height:22PX;font-size:15PX;width:100%;
  1053. display:block;word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  1054. }
  1055. @media screen and (min-width: 1401px) {
  1056. //你的样式
  1057. .newsDetail{
  1058. width: 1401PX;
  1059. margin: 0 auto 10PX;
  1060. overflow: hidden;
  1061. font-size: 16px;
  1062. // background: red;
  1063. display: flex;
  1064. align-items: flex-start;
  1065. justify-content: space-between;
  1066. background: #fff;
  1067. // margin-top: 20PX;
  1068. padding: 0 10PX;
  1069. .innerLeft{
  1070. float:left;
  1071. overflow: hidden;
  1072. width: 65%;
  1073. // background: red;
  1074. .LeftTop {
  1075. >h1 {
  1076. display: block;
  1077. width: 100%;
  1078. height: auto;
  1079. // color: #454749;
  1080. line-height: 40PX;
  1081. font-weight: normal;
  1082. font-size: 24PX;
  1083. color: #333333;
  1084. text-align: center;
  1085. }
  1086. >p {
  1087. width: 100%;
  1088. height: 40PX;
  1089. text-align: center;
  1090. line-height: 26PX;
  1091. // border-bottom: 1PX solid #ccc;
  1092. border-bottom: 1px dashed #ccc;
  1093. span {
  1094. padding: 0 10PX;
  1095. font-size: 15PX;
  1096. color: #454749;
  1097. }
  1098. }
  1099. >img {
  1100. display: inline-block;
  1101. max-width: 100%;
  1102. overflow: hidden;
  1103. margin: 20PX auto;
  1104. text-align: center;
  1105. vertical-align: middle;
  1106. }
  1107. }
  1108. .leftBottom {
  1109. margin-top: 20PX;
  1110. font-size: 18PX;
  1111. line-height: 38PX;
  1112. // margin-bottom: 30PX;
  1113. word-break:break-all;
  1114. ul>li img {
  1115. width: 790PX;
  1116. height: 382PX;
  1117. }
  1118. img {
  1119. width: 790PX;
  1120. height: 382PX;
  1121. }
  1122. p.tinymce-material {
  1123. img {
  1124. width: 790PX;
  1125. }
  1126. }
  1127. >h3,
  1128. >p {
  1129. text-indent: 2em;
  1130. width: 790PX;
  1131. font-family: "宋体";
  1132. font-size: 18PX;
  1133. color: #333;
  1134. line-height: 38PX;
  1135. padding-bottom: 30PX;
  1136. font-weight: normal;
  1137. img {
  1138. width: 790PX;
  1139. }
  1140. }
  1141. >h3 {
  1142. font-weight: 600PX;
  1143. }
  1144. >p {
  1145. text-indent: 2em;
  1146. font-weight: 400;
  1147. }
  1148. }
  1149. .disclaimer {
  1150. width: 790PX;
  1151. overflow: hidden;
  1152. border-top: 1PX solid #e6e6e6;
  1153. padding: 30PX 0PX;
  1154. color: #999999;
  1155. font-size: 18PX;
  1156. p {
  1157. text-indent: 2em;
  1158. width: 790PX;
  1159. line-height: 30PX;
  1160. }
  1161. }
  1162. .recommendRead {
  1163. width: 100%;
  1164. margin: 30PX 0PX 20PX0;
  1165. .recommendReadTitle {
  1166. font-size: 18PX;
  1167. color: #001996;
  1168. height: 42PX;
  1169. line-height: 35PX;
  1170. letter-spacing: 1PX;
  1171. text-align: left;
  1172. font-style: normal;
  1173. text-transform: none;
  1174. border-bottom: 1PX solid #D9D9D9;
  1175. .read_title {
  1176. display: inline-block;
  1177. text-align: center;
  1178. width: 94PX;
  1179. height: 40PX;
  1180. border-bottom: 2PX solid #158d91;
  1181. }
  1182. }
  1183. .recommendReadList {
  1184. min-height: 155PX;
  1185. margin-top: 20PX;
  1186. padding-bottom: 10PX;
  1187. font-size: 16PX;
  1188. border-bottom: 1PX solid #D9D9D9;
  1189. .recommendReadListTitle {
  1190. margin-top: 18PX;
  1191. a {
  1192. &:hover {
  1193. color: #158d91;
  1194. }
  1195. color: #333333;
  1196. }
  1197. }
  1198. .recommendReadListTitle:nth-child(1)::after {
  1199. content: "热";
  1200. margin-left: 13PX;
  1201. background: #FF8A37;
  1202. color: #fff;
  1203. font-size: 14PX;
  1204. padding: 0PX 2PX;
  1205. }
  1206. .recommendReadListTitle:hover a {
  1207. color: #158d91;
  1208. }
  1209. }
  1210. }
  1211. }
  1212. .innerRight{
  1213. width: 32%;
  1214. float: right;
  1215. overflow: hidden;
  1216. margin: 25PX auto;
  1217. box-sizing: border-box;
  1218. // background: blue;
  1219. .newsItemsBox {
  1220. width: 100%;
  1221. height: auto;
  1222. // padding: 10PX 0;
  1223. // background: blue;
  1224. .new-items-box-title {
  1225. // margin-bottom: 10PX;
  1226. width: 100%;
  1227. height: 36PX;
  1228. line-height: 36PX;
  1229. border-bottom: 2PX solid #83E515;
  1230. // background: yellow;
  1231. span{
  1232. width: 46PX;
  1233. height: 31PX;
  1234. background: url(../../../public/image/icon_gddt.jpg) no-repeat center center;
  1235. background-size: 100% 100%;
  1236. display: block;
  1237. height: 31PX;
  1238. float: left;
  1239. margin: 2PX;
  1240. }
  1241. a{
  1242. width: 88PX;
  1243. float: left;
  1244. display: block;
  1245. font-size: 16PX;
  1246. text-align: center;
  1247. color: #065500;
  1248. font-weight: bold;
  1249. // margin-left: 10px;
  1250. // border-bottom: 2PX solid #2b96f1;
  1251. // background: red;
  1252. }
  1253. }
  1254. .new-items-box-body{
  1255. padding: 10PX 10PX ;
  1256. .coniteml{
  1257. width: 100%;
  1258. height: auto;
  1259. // overflow: hidden;
  1260. // padding: 10PX 10PX ;
  1261. display: flex;
  1262. align-items: center;
  1263. justify-content: space-between;
  1264. margin-bottom: 20PX;
  1265. .l_img{
  1266. width: 48%;
  1267. // background: red;
  1268. height: auto;
  1269. // float: left;
  1270. // overflow: hidden;
  1271. .imgA{
  1272. display: block;
  1273. height: 100PX;
  1274. img{
  1275. vertical-align: middle;
  1276. // display: block ;
  1277. bottom: 0;
  1278. width: 100%;
  1279. height: 100%;
  1280. // margin-top: -20PX;
  1281. }
  1282. }
  1283. }
  1284. }
  1285. .coniteml2{
  1286. width: 100%;
  1287. height: auto;
  1288. overflow: hidden;
  1289. margin: 10PX 0;
  1290. .rdxwImg{
  1291. width: 34%;
  1292. height: 92PX;
  1293. float: left;
  1294. overflow: hidden;
  1295. a{
  1296. text-decoration: none;
  1297. img{
  1298. display: block;
  1299. width: 100%;
  1300. height: 100%;
  1301. }
  1302. }
  1303. }
  1304. .rdxwText{
  1305. width: 63%;
  1306. height: auto;
  1307. overflow: hidden;
  1308. float: right;
  1309. a{
  1310. text-decoration: none;
  1311. h4{
  1312. display: block;
  1313. width: 100%;
  1314. height: 20PX;
  1315. line-height: 20PX;
  1316. overflow: hidden;
  1317. font-size: 14PX;
  1318. color: #000;
  1319. font-weight: bold;
  1320. }
  1321. p{
  1322. width: 100%;
  1323. height: 50PX;
  1324. line-height: 24PX;
  1325. font-size: 15PX;
  1326. color: #333;
  1327. margin: 0;
  1328. overflow: hidden;
  1329. display: -webkit-box;
  1330. -webkit-box-orient: vertical;
  1331. -webkit-line-clamp: 2;
  1332. overflow: hidden;
  1333. text-overflow: ellipsis;
  1334. word-break: break-all;
  1335. text-indent: 2em;
  1336. }
  1337. }
  1338. }
  1339. }
  1340. .zzjj{
  1341. // margin-bottom: 40PX;
  1342. .maskLayer{
  1343. position: relative;
  1344. height: 100PX;
  1345. width: 49%;
  1346. .maskLayer_text{
  1347. .zzc{
  1348. position: absolute;
  1349. bottom: 0;
  1350. left: 0;
  1351. background: rgba(0, 0, 0, .5);
  1352. color: #fff;
  1353. display: block;
  1354. width: 100%;
  1355. line-height: 30PX;
  1356. overflow: hidden;
  1357. text-align: center;
  1358. font-size: 16PX;
  1359. }
  1360. }
  1361. }
  1362. }
  1363. .conitemlList{
  1364. width: 100%;
  1365. height: auto;
  1366. overflow: hidden;
  1367. // background: blue;
  1368. li{
  1369. width: 100%;
  1370. height: 30PX;
  1371. display: flex;
  1372. align-items: center;
  1373. justify-content:space-between;
  1374. span{
  1375. width: 4%;
  1376. display: inline-block;
  1377. height: 15PX;
  1378. font-size: 15PX;
  1379. line-height: 15PX;
  1380. text-align: center;
  1381. float: left;
  1382. overflow: hidden;
  1383. margin-right: 6PX;
  1384. }
  1385. a{
  1386. display: inline-block;
  1387. line-height: 34PX;
  1388. width: 96%;
  1389. // background: green;
  1390. font-size: 15PX;
  1391. color: #454749;
  1392. margin-top: 0;
  1393. overflow: hidden;
  1394. text-overflow: ellipsis;
  1395. white-space: nowrap;
  1396. }
  1397. a:hover{
  1398. color: #83E515;
  1399. }
  1400. }
  1401. }
  1402. .conitemlList li:nth-child(1) span{
  1403. background: #ff7500;
  1404. color: #fff;
  1405. }
  1406. .conitemlList li:nth-child(2) span{
  1407. background: #ffa400;
  1408. color: #fff;
  1409. }
  1410. .conitemlList li:nth-child(3) span{
  1411. background: #f6c20e;
  1412. color: #fff;
  1413. }
  1414. }
  1415. }
  1416. }
  1417. }
  1418. }
  1419. @media screen and (min-width: 801px) and (max-width: 1400px) {
  1420. //你的样式
  1421. .newsDetail{
  1422. min-width: 801PX;
  1423. max-width: 1400PX;
  1424. margin: 0 auto 10PX;
  1425. overflow: hidden;
  1426. font-size: 16px;
  1427. // background: red;
  1428. display: flex;
  1429. align-items: flex-start;
  1430. justify-content: space-between;
  1431. background: #fff;
  1432. // margin-top: 20PX;
  1433. padding: 0 10PX;
  1434. .innerLeft{
  1435. float:left;
  1436. overflow: hidden;
  1437. width: 65%;
  1438. // background: red;
  1439. .LeftTop {
  1440. >h1 {
  1441. display: block;
  1442. width: 100%;
  1443. height: auto;
  1444. // color: #454749;
  1445. line-height: 40PX;
  1446. font-weight: normal;
  1447. font-size: 24PX;
  1448. color: #333333;
  1449. text-align: center;
  1450. }
  1451. >p {
  1452. width: 100%;
  1453. height: 40PX;
  1454. text-align: center;
  1455. line-height: 26PX;
  1456. // border-bottom: 1PX solid #ccc;
  1457. border-bottom: 1px dashed #ccc;
  1458. span {
  1459. padding: 0 10PX;
  1460. font-size: 15PX;
  1461. color: #454749;
  1462. }
  1463. }
  1464. >img {
  1465. display: inline-block;
  1466. max-width: 100%;
  1467. overflow: hidden;
  1468. margin: 20PX auto;
  1469. text-align: center;
  1470. vertical-align: middle;
  1471. }
  1472. }
  1473. .leftBottom {
  1474. margin-top: 20PX;
  1475. font-size: 18PX;
  1476. line-height: 38PX;
  1477. // margin-bottom: 30PX;
  1478. word-break:break-all;
  1479. ul>li img {
  1480. width: 790PX;
  1481. height: 382PX;
  1482. }
  1483. img {
  1484. width: 790PX;
  1485. height: 382PX;
  1486. }
  1487. p.tinymce-material {
  1488. img {
  1489. width: 790PX;
  1490. }
  1491. }
  1492. >h3,
  1493. >p {
  1494. text-indent: 2em;
  1495. width: 790PX;
  1496. font-family: "宋体";
  1497. font-size: 18PX;
  1498. color: #333;
  1499. line-height: 38PX;
  1500. padding-bottom: 30PX;
  1501. font-weight: normal;
  1502. img {
  1503. width: 790PX;
  1504. }
  1505. }
  1506. >h3 {
  1507. font-weight: 600PX;
  1508. }
  1509. >p {
  1510. text-indent: 2em;
  1511. font-weight: 400;
  1512. }
  1513. }
  1514. .disclaimer {
  1515. width: 790PX;
  1516. overflow: hidden;
  1517. border-top: 1PX solid #e6e6e6;
  1518. padding: 30PX 0PX;
  1519. color: #999999;
  1520. font-size: 18PX;
  1521. p {
  1522. text-indent: 2em;
  1523. width: 790PX;
  1524. line-height: 30PX;
  1525. }
  1526. }
  1527. .recommendRead {
  1528. width: 100%;
  1529. margin: 30PX 0PX 20PX0;
  1530. .recommendReadTitle {
  1531. font-size: 18PX;
  1532. color: #001996;
  1533. height: 42PX;
  1534. line-height: 35PX;
  1535. letter-spacing: 1PX;
  1536. text-align: left;
  1537. font-style: normal;
  1538. text-transform: none;
  1539. border-bottom: 1PX solid #D9D9D9;
  1540. .read_title {
  1541. display: inline-block;
  1542. text-align: center;
  1543. width: 94PX;
  1544. height: 40PX;
  1545. border-bottom: 2PX solid #158d91;
  1546. }
  1547. }
  1548. .recommendReadList {
  1549. min-height: 155PX;
  1550. margin-top: 20PX;
  1551. padding-bottom: 10PX;
  1552. font-size: 16PX;
  1553. border-bottom: 1PX solid #D9D9D9;
  1554. .recommendReadListTitle {
  1555. margin-top: 18PX;
  1556. a {
  1557. &:hover {
  1558. color: #158d91;
  1559. }
  1560. color: #333333;
  1561. }
  1562. }
  1563. .recommendReadListTitle:nth-child(1)::after {
  1564. content: "热";
  1565. margin-left: 13PX;
  1566. background: #FF8A37;
  1567. color: #fff;
  1568. font-size: 14PX;
  1569. padding: 0PX 2PX;
  1570. }
  1571. .recommendReadListTitle:hover a {
  1572. color: #158d91;
  1573. }
  1574. }
  1575. }
  1576. }
  1577. .innerRight{
  1578. width: 32%;
  1579. float: right;
  1580. overflow: hidden;
  1581. margin: 25PX auto;
  1582. box-sizing: border-box;
  1583. // background: blue;
  1584. .newsItemsBox {
  1585. width: 100%;
  1586. height: auto;
  1587. // padding: 10PX 0;
  1588. // background: blue;
  1589. .new-items-box-title {
  1590. // margin-bottom: 10PX;
  1591. width: 100%;
  1592. height: 36PX;
  1593. line-height: 36PX;
  1594. border-bottom: 2PX solid #83E515;
  1595. // background: yellow;
  1596. span{
  1597. width: 46PX;
  1598. height: 31PX;
  1599. background: url(../../../public/image/icon_gddt.jpg) no-repeat center center;
  1600. background-size: 100% 100%;
  1601. display: block;
  1602. height: 31PX;
  1603. float: left;
  1604. margin: 2PX;
  1605. }
  1606. a{
  1607. width: 88PX;
  1608. float: left;
  1609. display: block;
  1610. font-size: 16PX;
  1611. text-align: center;
  1612. color: #065500;
  1613. font-weight: bold;
  1614. // margin-left: 10px;
  1615. // border-bottom: 2PX solid #2b96f1;
  1616. // background: red;
  1617. }
  1618. }
  1619. .new-items-box-body{
  1620. padding: 10PX 10PX ;
  1621. .coniteml{
  1622. width: 100%;
  1623. height: auto;
  1624. // overflow: hidden;
  1625. // padding: 10PX 10PX ;
  1626. display: flex;
  1627. align-items: center;
  1628. justify-content: space-between;
  1629. margin-bottom: 20PX;
  1630. .l_img{
  1631. width: 48%;
  1632. // background: red;
  1633. height: auto;
  1634. // float: left;
  1635. // overflow: hidden;
  1636. .imgA{
  1637. display: block;
  1638. height: 100PX;
  1639. img{
  1640. vertical-align: middle;
  1641. // display: block ;
  1642. bottom: 0;
  1643. width: 100%;
  1644. height: 100%;
  1645. // margin-top: -20PX;
  1646. }
  1647. }
  1648. }
  1649. }
  1650. .coniteml2{
  1651. width: 100%;
  1652. height: auto;
  1653. overflow: hidden;
  1654. margin: 10PX 0;
  1655. .rdxwImg{
  1656. width: 34%;
  1657. height: 92PX;
  1658. float: left;
  1659. overflow: hidden;
  1660. a{
  1661. text-decoration: none;
  1662. img{
  1663. display: block;
  1664. width: 100%;
  1665. height: 100%;
  1666. }
  1667. }
  1668. }
  1669. .rdxwText{
  1670. width: 63%;
  1671. height: auto;
  1672. overflow: hidden;
  1673. float: right;
  1674. a{
  1675. text-decoration: none;
  1676. h4{
  1677. display: block;
  1678. width: 100%;
  1679. height: 20PX;
  1680. line-height: 20PX;
  1681. overflow: hidden;
  1682. font-size: 14PX;
  1683. color: #000;
  1684. font-weight: bold;
  1685. }
  1686. p{
  1687. width: 100%;
  1688. height: 50PX;
  1689. line-height: 24PX;
  1690. font-size: 15PX;
  1691. color: #333;
  1692. margin: 0;
  1693. overflow: hidden;
  1694. display: -webkit-box;
  1695. -webkit-box-orient: vertical;
  1696. -webkit-line-clamp: 2;
  1697. overflow: hidden;
  1698. text-overflow: ellipsis;
  1699. word-break: break-all;
  1700. text-indent: 2em;
  1701. }
  1702. }
  1703. }
  1704. }
  1705. .zzjj{
  1706. // margin-bottom: 40PX;
  1707. .maskLayer{
  1708. position: relative;
  1709. height: 100PX;
  1710. width: 49%;
  1711. .maskLayer_text{
  1712. .zzc{
  1713. position: absolute;
  1714. bottom: 0;
  1715. left: 0;
  1716. background: rgba(0, 0, 0, .5);
  1717. color: #fff;
  1718. display: block;
  1719. width: 100%;
  1720. line-height: 30PX;
  1721. overflow: hidden;
  1722. text-align: center;
  1723. font-size: 16PX;
  1724. }
  1725. }
  1726. }
  1727. }
  1728. .conitemlList{
  1729. width: 100%;
  1730. height: auto;
  1731. overflow: hidden;
  1732. // background: blue;
  1733. li{
  1734. width: 100%;
  1735. height: 30PX;
  1736. display: flex;
  1737. align-items: center;
  1738. justify-content:space-between;
  1739. span{
  1740. width: 4%;
  1741. display: inline-block;
  1742. height: 15PX;
  1743. font-size: 15PX;
  1744. line-height: 15PX;
  1745. text-align: center;
  1746. float: left;
  1747. overflow: hidden;
  1748. margin-right: 6PX;
  1749. }
  1750. a{
  1751. display: inline-block;
  1752. line-height: 34PX;
  1753. width: 96%;
  1754. // background: green;
  1755. font-size: 15PX;
  1756. color: #454749;
  1757. margin-top: 0;
  1758. overflow: hidden;
  1759. text-overflow: ellipsis;
  1760. white-space: nowrap;
  1761. }
  1762. a:hover{
  1763. color: #83E515;
  1764. }
  1765. }
  1766. }
  1767. .conitemlList li:nth-child(1) span{
  1768. background: #ff7500;
  1769. color: #fff;
  1770. }
  1771. .conitemlList li:nth-child(2) span{
  1772. background: #ffa400;
  1773. color: #fff;
  1774. }
  1775. .conitemlList li:nth-child(3) span{
  1776. background: #f6c20e;
  1777. color: #fff;
  1778. }
  1779. }
  1780. }
  1781. }
  1782. }
  1783. }
  1784. @media screen and (max-width: 800px) {
  1785. //你的样式
  1786. .breadcrumb-box {
  1787. max-width: 100%;
  1788. height: 80PX;
  1789. // padding: 0 10PX;
  1790. // margin-top: 20PX;
  1791. overflow: hidden;
  1792. text-align: center;
  1793. }
  1794. .breadcrumb-box .inner{
  1795. max-width: 98%;
  1796. margin-bottom: 25PX;
  1797. overflow: hidden;
  1798. padding: 40PX 20PX -10PX;
  1799. margin-top: 10PX;
  1800. white-space: nowrap;
  1801. a{
  1802. font-size: 30px;
  1803. }
  1804. }
  1805. .prevNext{
  1806. margin: 20PX 0;
  1807. }
  1808. .newsDetail{
  1809. max-width: 800PX;
  1810. margin: 0 auto 10PX;
  1811. overflow: hidden;
  1812. font-size: 16px;
  1813. // background: red;
  1814. display: flex;
  1815. flex-wrap: wrap;
  1816. // align-items: flex-start;
  1817. // justify-content: space-between;
  1818. background: #fff;
  1819. // margin-top: 20PX;
  1820. padding: 0 20PX;
  1821. .innerLeft{
  1822. float:left;
  1823. overflow: hidden;
  1824. width: 100%;
  1825. // background: red;
  1826. .LeftTop {
  1827. >h1 {
  1828. display: block;
  1829. width: 100%;
  1830. height: auto;
  1831. // color: #454749;
  1832. line-height: 40PX;
  1833. font-weight: normal;
  1834. font-size: 44px;
  1835. color: #333333;
  1836. text-align: center;
  1837. }
  1838. >p {
  1839. width: 100%;
  1840. height: 40PX;
  1841. text-align: center;
  1842. line-height: 26PX;
  1843. // border-bottom: 1PX solid #ccc;
  1844. border-bottom: 1px dashed #ccc;
  1845. span {
  1846. padding: 0 10PX;
  1847. font-size: 28px;
  1848. color: #454749;
  1849. }
  1850. }
  1851. >img {
  1852. display: inline-block;
  1853. max-width: 100%;
  1854. overflow: hidden;
  1855. margin: 20PX auto;
  1856. text-align: center;
  1857. vertical-align: middle;
  1858. }
  1859. }
  1860. .leftBottom {
  1861. margin-top: 20PX;
  1862. font-size: 18PX;
  1863. line-height: 38PX;
  1864. // margin-bottom: 30PX;
  1865. word-break:break-all;
  1866. ul>li img {
  1867. width: 790PX;
  1868. height: 382PX;
  1869. }
  1870. img {
  1871. width: 790PX;
  1872. height: 382PX;
  1873. }
  1874. p.tinymce-material {
  1875. img {
  1876. width: 790PX;
  1877. }
  1878. }
  1879. >h3,
  1880. >p {
  1881. text-indent: 2em;
  1882. width: 790PX;
  1883. font-family: "宋体";
  1884. font-size: 28px;
  1885. color: #333;
  1886. line-height: 38PX;
  1887. padding-bottom: 30PX;
  1888. font-weight: normal;
  1889. img {
  1890. width: 790PX;
  1891. }
  1892. }
  1893. >h3 {
  1894. font-weight: 600PX;
  1895. }
  1896. >p {
  1897. text-indent: 2em;
  1898. font-weight: 400;
  1899. }
  1900. }
  1901. .disclaimer {
  1902. width: 790PX;
  1903. overflow: hidden;
  1904. border-top: 1PX solid #e6e6e6;
  1905. padding: 30PX 0PX;
  1906. color: #999999;
  1907. font-size: 18PX;
  1908. p {
  1909. text-indent: 2em;
  1910. width: 790PX;
  1911. line-height: 30PX;
  1912. }
  1913. }
  1914. .recommendRead {
  1915. width: 100%;
  1916. margin: 30PX 0PX 20PX0;
  1917. .recommendReadTitle {
  1918. font-size: 18PX;
  1919. color: #001996;
  1920. height: 42PX;
  1921. line-height: 35PX;
  1922. letter-spacing: 1PX;
  1923. text-align: left;
  1924. font-style: normal;
  1925. text-transform: none;
  1926. border-bottom: 1PX solid #D9D9D9;
  1927. .read_title {
  1928. display: inline-block;
  1929. text-align: center;
  1930. width: 94PX;
  1931. height: 40PX;
  1932. border-bottom: 2PX solid #158d91;
  1933. }
  1934. }
  1935. .recommendReadList {
  1936. min-height: 155PX;
  1937. margin-top: 20PX;
  1938. padding-bottom: 10PX;
  1939. font-size: 16PX;
  1940. border-bottom: 1PX solid #D9D9D9;
  1941. .recommendReadListTitle {
  1942. margin-top: 18PX;
  1943. a {
  1944. &:hover {
  1945. color: #158d91;
  1946. }
  1947. color: #333333;
  1948. }
  1949. }
  1950. .recommendReadListTitle:nth-child(1)::after {
  1951. content: "热";
  1952. margin-left: 13PX;
  1953. background: #FF8A37;
  1954. color: #fff;
  1955. font-size: 14PX;
  1956. padding: 0PX 2PX;
  1957. }
  1958. .recommendReadListTitle:hover a {
  1959. color: #158d91;
  1960. }
  1961. }
  1962. }
  1963. }
  1964. .innerRight {
  1965. width: 100%;
  1966. // float: right;
  1967. overflow: hidden;
  1968. margin: 20PX auto;
  1969. box-sizing: border-box;
  1970. .newsItemsBox {
  1971. width: 100%;
  1972. height: auto;
  1973. // padding: 10PX 0;
  1974. // background: blue;
  1975. .new-items-box-title {
  1976. // margin-bottom: 10PX;
  1977. width: 100%;
  1978. height: 36PX;
  1979. line-height: 36PX;
  1980. border-bottom: 2PX solid #83E515;
  1981. // background: yellow;
  1982. span{
  1983. width: 46PX;
  1984. height: 31PX;
  1985. background: url(../../../public/image/icon_gddt.jpg) no-repeat center center;
  1986. background-size: 100% 100%;
  1987. display: block;
  1988. height: 31PX;
  1989. float: left;
  1990. margin: 2PX;
  1991. }
  1992. a{
  1993. width: 88PX;
  1994. float: left;
  1995. display: block;
  1996. font-size: 16PX;
  1997. text-align: center;
  1998. color: #065500;
  1999. font-weight: bold;
  2000. // margin-left: 10px;
  2001. // border-bottom: 2PX solid #2b96f1;
  2002. // background: red;
  2003. }
  2004. }
  2005. .new-items-box-body{
  2006. padding: 10PX 10PX ;
  2007. .coniteml{
  2008. width: 100%;
  2009. height: auto;
  2010. // overflow: hidden;
  2011. // padding: 10PX 10PX ;
  2012. display: flex;
  2013. align-items: center;
  2014. justify-content: space-between;
  2015. margin-bottom: 90PX;
  2016. .l_img{
  2017. width: 48%;
  2018. // background: red;
  2019. height: auto;
  2020. // float: left;
  2021. // overflow: hidden;
  2022. .imgA{
  2023. display: block;
  2024. height: 112.5PX;
  2025. img{
  2026. vertical-align: middle;
  2027. // display: block ;
  2028. bottom: 5PX;
  2029. width: 100%;
  2030. height: 100%;
  2031. // margin-top: -20PX;
  2032. }
  2033. }
  2034. }
  2035. }
  2036. .coniteml2{
  2037. width: 100%;
  2038. height: auto;
  2039. overflow: hidden;
  2040. margin: 10PX 0;
  2041. .rdxwImg{
  2042. width: 34%;
  2043. height: 92PX;
  2044. float: left;
  2045. overflow: hidden;
  2046. a{
  2047. text-decoration: none;
  2048. img{
  2049. display: block;
  2050. width: 100%;
  2051. height: 100%;
  2052. }
  2053. }
  2054. }
  2055. .rdxwText{
  2056. width: 63%;
  2057. height: auto;
  2058. overflow: hidden;
  2059. float: right;
  2060. margin-top: 10PX;
  2061. a{
  2062. text-decoration: none;
  2063. h4{
  2064. display: block;
  2065. width: 100%;
  2066. height: 20PX;
  2067. line-height: 20PX;
  2068. overflow: hidden;
  2069. font-size: 28px;
  2070. color: #000;
  2071. font-weight: bold;
  2072. }
  2073. h4:hover{
  2074. color: #83E515;
  2075. }
  2076. p{
  2077. width: 100%;
  2078. height: 50PX;
  2079. line-height: 24PX;
  2080. font-size: 30px;
  2081. color: #333;
  2082. margin: 0;
  2083. overflow: hidden;
  2084. display: -webkit-box;
  2085. -webkit-box-orient: vertical;
  2086. -webkit-line-clamp: 2;
  2087. overflow: hidden;
  2088. text-overflow: ellipsis;
  2089. word-break: break-all;
  2090. text-indent: 2em;
  2091. }
  2092. p:hover{
  2093. color: #83E515;
  2094. }
  2095. }
  2096. }
  2097. }
  2098. .zzjj{
  2099. // margin-bottom: 40PX;
  2100. .maskLayer{
  2101. position: relative;
  2102. height: 37.5PX;
  2103. line-height: 37.5PX;
  2104. width: 49%;
  2105. .maskLayer_text{
  2106. height: 37.5PX;
  2107. .zzc{
  2108. position: absolute;
  2109. bottom: -75PX;
  2110. height: 37.5PX;
  2111. left: 0;
  2112. background: rgba(0, 0, 0, .5);
  2113. color: #fff;
  2114. display: block;
  2115. width: 100%;
  2116. line-height: 37.5PX;
  2117. overflow: hidden;
  2118. text-align: center;
  2119. font-size: 16PX;
  2120. }
  2121. }
  2122. }
  2123. }
  2124. .conitemlList{
  2125. width: 100%;
  2126. height: auto;
  2127. overflow: hidden;
  2128. // background: blue;
  2129. li{
  2130. width: 100%;
  2131. height: 30PX;
  2132. display: flex;
  2133. align-items: center;
  2134. justify-content:space-between;
  2135. span{
  2136. width: 4%;
  2137. display: inline-block;
  2138. height: 15PX;
  2139. font-size: 15PX;
  2140. line-height: 15PX;
  2141. text-align: center;
  2142. float: left;
  2143. overflow: hidden;
  2144. margin-right: 6PX;
  2145. }
  2146. a{
  2147. display: inline-block;
  2148. line-height: 34PX;
  2149. width: 96%;
  2150. // background: green;
  2151. font-size: 34px;
  2152. color: #454749;
  2153. margin-top: 0;
  2154. overflow: hidden;
  2155. text-overflow: ellipsis;
  2156. white-space: nowrap;
  2157. }
  2158. a:hover{
  2159. color: #83E515;
  2160. }
  2161. }
  2162. }
  2163. .conitemlList li:nth-child(1) span{
  2164. background: #ff7500;
  2165. color: #fff;
  2166. }
  2167. .conitemlList li:nth-child(2) span{
  2168. background: #ffa400;
  2169. color: #fff;
  2170. }
  2171. .conitemlList li:nth-child(3) span{
  2172. background: #f6c20e;
  2173. color: #fff;
  2174. }
  2175. }
  2176. }
  2177. }
  2178. }
  2179. // .newsDetail .inner{display:block;width:100%;}
  2180. // .newsDetail .inner .innerLeft{width:100%;}
  2181. // .newsDetail .inner .innerRight{width:100%;}
  2182. // .breadcrumb-box .phone_breadcrumb_text /deep/.el-breadcrumb__inner{width:100PX;
  2183. // display:block;word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  2184. // }
  2185. // .newsDetail .inner .innerLeft .recommendRead .recommendReadTitle .read_title{width:auto;}
  2186. // .newsDetail .inner .innerLeft .leftBottom{line-height:33PX;}
  2187. }
  2188. </style>